<?php defined('ByShopWWI') or exit('Access Invalid!');?>

<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <div class="subject">
        <h3>返现比例管理</h3>
        
      </div>
      <ul class="tab-base nc-row">
        <li><a href="index.php?act=member_exp&op=index" >经验值明细</a></li>
        <li><a href="index.php?act=member_exp&op=expsetting">规则设置</a></li>
        <li><a href="index.php?act=member_exp&op=member_grade">等级设定</a></li>
        <li><a href="JavaScript:void(0);" class="current">返现比例</a></li>
      </ul>
    </div>
  </div>
  <form method="post" name="returnpointForm" id="returnpointForm">
    <input type="hidden" name="form_submit" value="ok" />
    <div class="ncap-form-default">
      <dl class="row">
        <dt class="tit">当天返现比例</dt>
        <dd class="opt">
          <input id="back_point" name="back_point" value="" class="input-txt" type="text" >
        </dd>
      </dl>
      <div class="bot"><a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" id="submitBtn"><?php echo $lang['nc_submit'];?></a></div>
    </div>
  </form>
</div>

<table width="80%" border="0" cellspacing="0" cellpadding="2" style="border:1px solid #ccc; margin:0 auto;">
  <tr>
    <td bgcolor="#f0f0f0" style="height:25px; line-height:25px;"></td>
    <td bgcolor="#f0f0f0" style="height:25px; line-height:25px;">返现比例</td>
    <td bgcolor="#f0f0f0" style="height:25px; line-height:25px;">时间</td>
    <td bgcolor="#f0f0f0" style="height:25px; line-height:25px;">&nbsp;</td>
    <td bgcolor="#f0f0f0" style="height:25px; line-height:25px;">&nbsp;</td>
  </tr>
  
<?php
if(!empty($output['pointlist'])){
 foreach($output['pointlist'] as $key=>$val){?>
  <tr> 
    <td style="height:25px;"></td>
    <td>&nbsp;<?php echo $val['back_point'];?></td>
    <td>&nbsp;<?php echo $val['addtime'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <?php } 
}
  ?>
  
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
  <script type="text/javascript" src="<?php echo ADMIN_RESOURCE_URL?>/js/highcharts.js"></script>
  <script type="text/javascript" src="<?php echo ADMIN_RESOURCE_URL?>/js/statistics.js"></script>
<center> <div id="container" style="height:400px;width:80%"></div></center>
<script>
$(function(){
	$("#submitBtn").click(function(){
		$("#returnpointForm").submit();
	});
	$('#container').highcharts(<?php echo $output['stat_json'];?>);
	//$('#container').highcharts({"xAxis":{"categories":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"series":[{"name":"\u4e0a\u6708","data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,1,0,0,0,0,1,0,0,0]}],"title":{"text":"<b>\u65b0\u589e\u4f1a\u5458\u7edf\u8ba1<\/b>","x":-20},"chart":{"type":"line"},"colors":["#058DC7","#ED561B","#8bbc21","#0d233a"],"credits":{"enabled":false},"exporting":{"enabled":false},"yAxis":{"title":{"text":"\u65b0\u589e\u4f1a\u5458\u6570"}}});
});
</script> 
